//
//  HomeBannerModel.m
//  
//
//  Created by 王长飞 on 2018/10/20.
//  Copyright © 2018年 王长飞. All rights reserved.
//

#import "UserInfoEditModel.h"

@implementation UserInfoEditModel

- (instancetype)initWithDelegate:(id<BaseModelProtocol>)Delegate cache:(BOOL)cache
{
    if (self = [super initWithDelegate:Delegate cache:cache]) {
        self.parseModelClass = [UserInfoEditResponse class];
    }
    return self ;
}
- (void)changeWith:(NSString *)headUrl name:(NSString *)name userId:(NSString *)userId
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:4];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];
    [parameters setValue:userId forKey:@"id"];
    if(!ISEMPTY(headUrl)){
        [parameters setValue:headUrl forKey:@"headUrl"];
    }
    if(!ISEMPTY(name)){
        [parameters setValue:name forKey:@"name"];
    }
    [self postPath:@"xqn/app/member/edit" parameters:parameters];
}

@end
